package com.jdym.back.service.impl;

import com.jdym.back.entity.Put;
import com.jdym.back.entity.Return;
import com.jdym.back.mapper.ReturnMapper;
import com.jdym.back.service.ReturnService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 还款表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class ReturnServiceImpl extends ServiceImpl<ReturnMapper, Return> implements ReturnService {

    @Autowired
    ReturnMapper returnMapper;
    //查询 银行 还款信息   银行、逾期、企业、还款四表表联合查询信息
    public List<Return> FindReturnOverCobFirmAll() {
        return returnMapper.FindReturnOverCobFirmAll();
    }

    @Override
    public Return getReturnReportById(int loanId) {

        return  returnMapper.getReturnReportById(loanId);
    }
}
